import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './plugins/element.js'

Vue.config.productionTip = false

import axios from 'axios'
axios.defaults.baseURL="http://47.98.128.191:3000"

import api from './http/api'  //有from，不只是运行，还能使用暴露的部分
Vue.prototype.$api=api

//运行封装的代码,验证token
import '@/http/axios.js'    //没有from，只是运行
//自定义指令
import '@/directive/auth.js'



new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
